package com.example.springboot2022nocv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot2022nocv.entity.User;
import org.apache.ibatis.annotations.Select;

/**
 * @author 程序员小洋
 * @version 2022.3
 * @date 2022/12/28 10:18
 * @title
 */
@SuppressWarnings("all")
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where username=#{username} and password=#{password}")
    User login(String username, String password);

}
